package com.edou.base.mybatis.dialect;

import org.apache.ibatis.mapping.BoundSql;

import com.edou.base.mybatis.page.SqlServerPageHelper;

public class SqlServerDialect extends Dialect{
	
	private BoundSql boundSql;
	private String primaryKey;
	
	public SqlServerDialect(BoundSql boundSql,String primaryKey){
		this.boundSql = boundSql;
		this.primaryKey = primaryKey;
	}
	
	@Override
	public String getLimitString(String sql, int offset, int limit) {
		return SqlServerPageHelper.getLimitString(sql, offset, limit,boundSql,primaryKey);
	}

}
